@charset "utf-8";
/**
 * Created by kroyo on 2017/10/20.
 * index.html   首页样式
 */

@import 'common/mixincommon';



@keyframes slideInRight {
  from {
    transform: translate3d(100%, 0, 0);
    visibility: visible;
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}



//主页标题
.home-title{
    padding-top: 30px;
    margin-bottom: 35px;
    font-size: 36px;
    color: $s3;
    text-align: center;
}


.home-main{
    width: 100%;
    min-width: 1200px;
}


//发布需求
.home-pdemand{
    background-color: #f2f2f2;
    padding-top:30px;
    padding-bottom: 30px;
    text-align: center;
    .pdemand-view{
        width: 100%;
        height: 355px;
        @include borradius(10px);
        @include box-shadow(0px,4px,10px,0px,rgba(0,0,0,0.1));
        background-color:$sf ;
    }
    .pdemand-title{
        padding-top: 22px;
        margin-bottom: 24px;
    }
    .pdemand-form{
        width: 480px;
        margin: 0 auto;
    }
    .form-item{
        position: relative;
        width: 480px;
        height: 40px;
        font-size: 14px;
        margin-bottom: 20px;
        p{
            float: left;
            width: 80px;
            line-height: 40px;
            text-align: left;
        }
        &>div,&>input{
            float: right;
        }
        &>input{
            display: block;
            width: 400px;
            height: 100%;
            float: none;
            overflow: hidden;
        }
        input{
            padding-left:8px ;
            padding-right: 8px;
            background-color: transparent;
            border: 1px solid $borcolor;
            font-size: 14px;
            @include borradius(2px);
            @include transitions(.5s);
        }
        &:after{
            content: "";
            display:block;
            clear:both;
        }
    }
    .demand-linkphone{
        &>div{
            font-size: 0;
        }
        .p-code{
            width: 100px;
            height: 40px;
            font-size: 14px;
            margin-left: 10px;
            vertical-align: middle;
        }
        .pdemand-send-code{
            position: relative;
            background-color: transparent;
            @include borradius(2px);
            border: 1px solid $acolor;
            color: $acolor;
            @include transitions(0.4s);
            &:hover{
                background-color: $acolor;
                color: #FFFFFF;
            }
            &.disabled{
                background: rgba(8, 8, 8, 0.1);
                border-color: #dddddd;
                color: $s9;
                cursor:not-allowed; 
                &:hover{
                    background-color: rgba(8, 8, 8, 0.1);
                    &:after{
                        display: none;
                    }
                }
            }    
        }
        .pdemand-phone{
            width: 180px;
            height: 40px;
            font-size: 14px;
            vertical-align: middle;
        }
    }
    .pdemand-submit{
        width: 200px;
        height: 40px;
        line-height: 40px;
        @include borradius(2px);
        font-size: 14px;
        color: $sf;
        text-align: center;
        background-color: $acolor;
        margin-top: 10px;
        @include transitions(0.2s);
        &:hover{
            background-color: $bhoverc;
        }
    }
}



//发布需求添加付费项
.home-pdemand-view{
    background-color: #fff;
    padding: 0;
    .pdemand-view{
        height: auto;
        background-color:transparent;
        @include borradius(0);
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
        transform: none;
    }
    .pdemand-title{
        position:relative;
        padding-top: 32px;
        margin-bottom: 40px;
        &:before{
            display: inline-block;
            content: '';
            width: 34px;
            height: 32px;
            background: url(../img/index/icon-pdemand.png) no-repeat center;
            background-size: 100%;
            margin-right: 10px;
            vertical-align: -4px;
        }
    }
    .demand-mode{
        position: relative;
        left: -360px;
        width: 1200px;
        height: 60px;
        line-height: 60px;
        margin-top: 30px;
        //旧的样式
        .mode{
            position: relative;
            width: 100%;
            height: 100%;
            @include borradius(2px);
            padding-right: 30px;
            &:after{
                position: absolute;
                bottom: -22px;
                display: block;
                content: '';
                border-top: 12px solid $acolor;
                border-left: 7px solid transparent;
                border-right: 7px solid transparent;
            }
            &>div{
                float: left;
                color: $s3;
                font-size: 14px;
                &:before{
                    display: inline-block;
                    content: '';
                    width: 24px;
                    height: 26px;
                    margin-right: 10px;
                    margin-left: 30px;
                    background: url(../img/index/icon-list2.png) no-repeat center;
                    vertical-align: -8px;
                }
            }
            .nohas{
                color: $sc;
            }
        }
        .mode-first{
            display: none;
            border: 1px solid $acolor;
            &:after{
                left: 522px;
            }
            &>div:first-child:before{
                background-position:0 -34px;
            }
            &>div:nth-child(2):before{
                background-position:-84px -34px;
            }
            &>div:nth-child(3):before{
                background-position:-168px -34px;
            }
            &>div:nth-child(4):before{
                background-position:-252px -34px;
            }
            &>div:last-child:before{
                background-position:-336px -34px;
            }
        }
        .mode-second{
            border: 1px solid #fea733;
            &:after{
                right: 442px;
                border-top-color: #fea733;
            }
            &>div:first-child:before{
                background-position:0 1px;
            }
            &>div:nth-child(2):before{
                background-position:-84px 1px;
            }
            &>div:nth-child(3):before{
                background-position:-168px 1px;
            }
            &>div:nth-child(4):before{
                background-position:-252px 1px;
            }
            &>div:last-child:before{
                background-position:-336px 1px;
            }
        }
        
        .new-mode{
            width: 700px;
            border: 1px solid #fea733;
            margin: 0 auto;
            &>div{
                margin-left: 28px;
                &:before{
                    background-image: url(../img/index/icon-list.png);
                }
            }
            &:after{
                right: 192px;
                border-top-color: #fea733;
            }
            &>div:first-child:before{
                background-position:0 0;
            }
            &>div:nth-child(2):before{
                background-position:0 -27px;
            }
            &>div:last-child:before{
                background-position:0 -54px;
            }
        }
    }
    .pdemand-btnlist{
        width: 100%;
        font-size: 0;
        margin-top: 30px;
        margin-bottom: 40px;
        text-align: right;
        .pbtn{
            position: relative;
            display: inline-block;
            width: 180px;
            height: 50px;
            line-height: 50px;
            @include borradius(4px);
            color: #fff;
            font-size: 14px;
            cursor: pointer;
            text-align: center;
            vertical-align: middle;
            i{
                font-size: 18px;
                font-weight: bold;
            }
            &:after{
                position: absolute;
                top: 0;
                left: 0;
                display: block;
                content: '';
                width: 100%;
                height: 100%;
                background-color: rgba(255,255,255,0);
                @include transitions(.4s);
            }
        }
        .pbtn:hover:after{
            background-color: rgba(255,255,255,.3);
        }
        .pdemand-mode-first{
            background-color: $acolor;
        }
        .pdemand-mode-second{
            position: relative;
            background-color: #fea733;
            margin-left: 40px;
            overflow: hidden;
            &:before{
                position: absolute;
                top: -1px;
                right: -1px;
                display: block;
                content: '';
                width: 51px;
                height: 51px;
                background: url(../img/index/icon-tink.png) no-repeat center;
            }
        }
    }
}













//公司简介  标签  label
.home-label{
    width: 100%;
    height: 140px;
    background-color: $sf;
    overflow: hidden;
    .label-item{
        float: left;
        width: 270px;
        height: 140px;
        padding-left:60px;
        padding-right: 60px;
        text-align: center;
        margin-right: 40px;
        &:last-of-type{
            margin-right: 0;
        }
        .item{
            width: auto;
            height: 100%;
            padding-top:34px;
            padding-bottom: 30px;
            cursor: pointer;
            @include transitions(0.4s);
            &:hover{
                p{
                    color: $acolor;
                }                
            }
        }
        .item-img{
            width: 100%;
            height: 40px;
            @include transitions(0.4s);
        }
        p{
            font-size: 16px;
            color: $s3;
            margin-top: 12px;
            @include transitions(0.4s);
        }
    }
    .item1{
        .item-img{
            background: url(../img/index/icon-label1.png) no-repeat center;
        }
        &:hover{
            .item-img{
                background-image: url(../img/index/icon-label1-hover.png);
            }
        }
    }
    .item2{
        .item-img{
            background: url(../img/index/icon-label2.png) no-repeat center;
        }
        &:hover{
            .item-img{
                background-image: url(../img/index/icon-label2-hover.png);
            }
        }
    }
    .item3{
        .item-img{
            background: url(../img/index/icon-label3.png) no-repeat center;
        }
        &:hover{
            .item-img{
                background-image: url(../img/index/icon-label3-hover.png);
            }
        }
    }
    .item4{
        .item-img{
            background: url(../img/index/icon-label4.png) no-repeat center;
        }
        &:hover{
            .item-img{
                background-image: url(../img/index/icon-label4-hover.png);
            }
        }
    }
}



//优质案例
.home-case{
    height: 815px;
    background-color: #F2F2F2;
    .case-title{
        padding-top: 35px;
        margin-bottom: 37px;
    }
    .case-item{
        position: relative;
        float: left;
        overflow: hidden;
        @include transitions(0.2s linear);
        a{
            display: block;
            width: 100%;
            height: 100%;
        }
        img{
            width: 100%;
            height: 100%;
        }
        .case-text{
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height:50px;
            line-height: 50px;
            font-size: 18px;
            color: #eeeeee;
            padding: 0 10px;
            text-align: center;
            background-color: rgba(0,0,0,0.3);
            opacity: 1;
            @include transitions(.2s linear);
            @include textoverflow;
        }
        &:hover{
            @include box-shadow(0,15px,30px,0,rgba(0,0,0,0.1));
//          .case-text{
//              height: 50px;
//              opacity: 1;
//          }
        }
    }
    .item1{
        width: 500px;
        height: 360px;
        margin-bottom: 20px;
    }
    .item2,.item3{
        width: 330px;
        height: 360px;
        margin-left: 20px;
        margin-bottom: 20px;
    }
    .item4,.item5{
        width: 400px;
        height: 200px;
        margin-right: 20px;
    }
    .item6{
        width: 360px;
        height: 200px;
    }
    .case-more{
        position: relative;
        width: 300px;
        height: 40px;
        line-height: 40px;
        background-color: transparent;
        border: 1px solid $acolor;
        @include borradius(20px);
        text-align: center;
        margin: 40px auto;
        font-size: 14px;
        cursor: pointer;
        @include transitions(0.5s);
        a{
            display: block;
            width: 100%;
            height: 100%;
            color: $acolor;
            @include transitions(0.5s);
        }
        &:hover{
            background-color: $acolor;
            a{
                color: #FFFFFF;
            }
        }
    }
}



//热门看点
.home-hotwatch{
    height: 736px;
    background-color:$sf;
    .hotwatch-title{
        padding-top: 35px;
        margin-bottom: 37px;
    }
    .hotwatch-more{
        position: relative;
        width: 300px;
        height: 40px;
        line-height: 40px;
        background-color: transparent;
        border: 1px solid $acolor;
        @include borradius(20px);
        text-align: center;
        margin: 40px auto;
        font-size: 14px;
        cursor: pointer;
        @include transitions(.4s);
        a{
            display: block;
            width: 100%;
            height: 100%;
            color: $acolor;
        }
        &:hover{
            background-color: $acolor;
            a{
                color: #FFFFFF;
            }
        }
    }
    .hotwatch-main{
        height: 500px;
    }
    .hotwatch-paper{
        width: 300px;
        height: 100%;
        line-height: 25px;
        background-color: #f2f2f2;
        overflow: hidden;
        @include transitions(400ms);
        &>a{
            display: block;
            width: 100%;
            height: 100%;
            padding: 20px;
        }
        .paper-img{
            width: 260px;
            height:156px;
            overflow: hidden;
            img{
                width: 100%;
                height: 100%;
                @include transitions(400ms);
            }
        }
        .paper-title{
            font-size: 16px;
            font-weight: bold;
            color: $s3;
            margin-top: 15px;
            @include multi-line(2);
            @include transitions(400ms);
        }
        .paper-time{
            font-size: $font14;
            color: $s9;
            margin: 10px 0;
        }
        .paper-content{
            font-size: $font14;
            color: $s6;
            @include multi-line(7);
        }
        &:hover{
            @include box-shadow(0,5px,10px,0,rgba(0,0,0,0.1));
            .paper-img{
                img{
                    @include transformt(scale(1.1));
                }
            }
            .paper-title{
                color: $acolor;
            }
        }
    }
    .hotwatch-lists{
        width: 880px;
        height: 100%;
        .list-item{
            height: 160px;
            background-color:#F2F2F2 ;
            margin-bottom: 10px;
            @include transitions(400ms);
            &:last-of-type{
                margin-bottom: 0;
            }
            &>a{
                display: block;
                width: 100%;
                height: 100%;
                padding: 20px;
            }
            &:hover{
                @include box-shadow(0,5px,10px,0,rgba(0,0,0,0.1));
                .item-img img{
                    @include transformt(scale(1.2));
                }
                .item-title{
                    color: $acolor;
                }
            }
        }
        .item-img{
            width: 200px;
            height: 120px;
            overflow: hidden;
            img{
                width: 100%;
                height: 100%;
                @include transitions(400ms);
            }
        }
        .item-content{
            width: 620px;
            height: 100%;
            margin-left: 20px;
        }
        .item-title{
            font-size: $font16;
            color: $s3;
            font-weight: bold;
            line-height: 25px;
            @include transitions(400ms);
            @include textoverflow;
        }
        .item-time{
            font-size: $font14;
            color: $s9;
            margin:13px 0;
            span{
                margin-left: 5px;
            }
        }
        .item-detail{
            width: 100%;
            height: 50px;
            line-height: 25px;
            font-size: 14px;
            color: $s6;
            @include multi-line(2);
        }
    }
}



//合作伙伴
.home-partner{
    height: 335px;
    background-color: #f2f2f2;
    .partner-li{
        position: relative;
        float: left;
        width: 180px;
        height: 80px;
        margin-bottom: 20px;
        margin-right: 24px;
        overflow: hidden;
        cursor: pointer;
        img{
            position: relative;
            width: 180px;
            height: 80px;
            z-index: 1;
        }
        div{
            position: absolute;
            top: 0;
            left: 0;
            z-index: 2;
            width: 100%;
            height: 100%;
            text-align: center;
            color: $sf;
            line-height: 24px;
            background-color: rgba(0,160,233,0.8);
            padding-top: 15px;
            @include transformt(scale(0));
            opacity: 0;
            @include transitions(0.5s);
            p{
                font-size: 16px;
            }
            span{
                font-size: 14px;
            }
            &:hover{
                @include transformt(scale(1));
                opacity: 1;
            }
        }
        &:nth-of-type(6n){
            margin-right: 0;
        }
        &:hover{
            div{
                @include transformt(scale(1));
                opacity: 1;
            }
        }
    }
}
